import axios from 'axios';
import { API_NEW_VERSION } from '../api';
var qs = require('qs');
// 获取补偿申请列表
export const searchInfoList = params => {
  return axios.get(API_NEW_VERSION + 'excellent_route_notice_of_claims', {params: params});
};
// 根据ID获取补偿申请信息
export const getInfoByIdApi = (id) => {
  return axios.get(API_NEW_VERSION + 'excellent_route_notice_of_claim/' + id);
};
// 保存服务承诺
export const saveInfo = (params) => {
  return axios.post(API_NEW_VERSION + 'excellent_route_notice_of_claim', params);
};

// 补偿申请审核
export const noticeOfClaimAudit = (id, params) => {
  return axios.post(API_NEW_VERSION + 'excellent_route_notice_of_claim/audit/' + id, params);
};

// 补偿申请划账确认
export const noticeOfClaimRemitAccount = (id, params) => {
  return axios.post(API_NEW_VERSION + 'excellent_route_notice_of_claim/remit_account/' + id, params);
};

// 新增补偿申请
export const saveClaimApplyInfo = (params) => {
  return axios.post(API_NEW_VERSION + 'excellent_route_notice_of_claim2', qs.stringify(params));
};
